package com.hw.springbooteasypoi.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @program: springboot-easypoi
 * @description:
 * @author: hewei
 * @date: 2021-09-26 13:59
 **/
@Data
@ExcelTarget("User")
public class User implements Serializable {

    @Excel(name = "姓名", orderNum = "0",needMerge = true,mergeVertical = true)
    private String name;

    @Excel(name = "性别", orderNum = "1",needMerge = true,mergeVertical = true)
    private String sex;

//    @Excel(name = "出生日期", exportFormat = "yyyy-MM-dd", orderNum = "2")
//    private Date birthday;

    @ExcelCollection(name = "汽车",orderNum = "2")
    private List<Car> cars;
}
